# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wl-gammarelay
pkgver=0.1.0
pkgrel=3
pkgdesc="Control color temperature and brightness under Wayland via DBus"
url="https://github.com/jeremija/wl-gammarelay"
license="GPL-3.0"
arch="all"
makedepends="go wayland-dev"
source="https://github.com/jeremija/wl-gammarelay/archive/v$pkgver/wl-gammarelay-$pkgver.tar.gz"
options="!check" # no test suite

export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOPATH="$srcdir"

build() {
	make -C protocol
	go build -ldflags "-X main.Version=$pkgver"
}

package() {
	install -Dm755 wl-gammarelay "$pkgdir"/usr/bin/wl-gammarelay 
}

sha512sums="
170ddfcd52e3055803f365b0be7a1247b3afdbeed9993e0ef9a495bd3fec127075f3f324459beb5373eeeadb54e2eb28ff8b8e2e34e9b14e732d9b6690577602  wl-gammarelay-0.1.0.tar.gz
"
